<?php

namespace app\admin\model;

use think\Model;


class Common
{

    public static function getList($model,$field = 'name'){
        $data = $model->select();
        $return = [];
        foreach($data as $k => $v){
            $return[$v['id']] = $v[$field];
        }
        return $return;
    }
}